import instance from "../../utils/request";

export function findPageprice(searchParams) {
    //向后台发送请求，得到数据
    return instance.get(`/paPriceAdministration/findList`,{params: searchParams});
}
export function insert(entity) {
    //向后台发送请求，得到数据
    return instance.post(`/paPriceAdministration/add/`,entity);
}
export function updateByIdPrice(entity) {
    //向后台发送请求，得到数据
    return instance.put(`/paPriceAdministration/updatePrice/`,entity);
}
export function deleteByIdPrice(id) {
    //向后台发送请求，得到数据
    return instance.delete(`/paPriceAdministration/deleteById/${id}`);
}
export function batchDeleteByIdPrice(ids) {
    //向后台发送请求，得到数据
    return instance.delete(`/paPriceAdministration/batchDeleteIds/${ids}`);
}
export function updateByIdPricePass(entity) {
    //向后台发送请求，得到数据
    return instance.put(`/paPriceAdministration/updatePricePass/`,entity);
}
export function updateByIdPriceNoPass(entity) {
    //向后台发送请求，得到数据
    return instance.put(`/paPriceAdministration/updatePriceNoPass/`,entity);
}

